package com.jsbb.exception;

import lombok.Data;

/**
 * 自定义异常
 *
 * @author w
 * @date 2021-03-05
 */
@Data
public class ServiceException extends RuntimeException {

    private String code;

    private String msg;

    public ServiceException(String msg) {
        this.code = "0001";
        this.msg = msg;
    }

    public ServiceException(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
